package com.nut.dao;

import com.nut.pojo.Book;

import java.util.List;

public interface BookDao {

    public int addBook(Book book);

    public int deleteBookById(Integer id);

    public int updateBook(Book book);

    public Book queryBookById(Integer id);

    public List<Book> queryBooks();

    public Integer queryForPageTotalCount();
    public Integer queryForPageTotalCountByName(String name);

    List<Book> queryForItems(int begin, int pageSize);

    public List<Book> queryForItemsByName(String name,int begin, int pageSize);
}
